import com.lpf.transaction.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 功能描述：手动事务
 */
public class SpringManualTransaction {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("spring-manual-transaction.xml");
        UserService userService = (UserService) app.getBean("userService");
        userService.addOfManual();
    }

}
